package dao;

import org.apache.ibatis.annotations.Param;
import pojo.Dept;

import java.util.List;

public interface DeptDao {
    //增加
    int addDept(String dname);
    //删除 根据id
    int deleteDeptById(int id);
    //修改
    int updateDept(Dept dept);
    //查询 根据id
    //全查询
    List<Dept>findAll(@Param("offset") int offset,@Param("pageSize")int pageSize);
    List<Dept> findAll2(@Param("dept") Dept dept, @Param("offset") int offset, @Param("pageSize") int pageSize);
    //根据id
    Dept findById(int id);

    int login();

    int count(Dept dept);
}
